package repository

import (
	"context"
	"gorm.io/gorm"
	"xs.jsjb/internal/app/menu/entity"
)

type menuRepo struct {
	db *gorm.DB
}
type MenuRepo interface {
	GetMenu(ctx context.Context, title string) (menu *entity.GetMenuRes, err error)
}

func NewMenuRepo(db *gorm.DB) MenuRepo {
	return &menuRepo{db: db}
}
